<script>
export default {
  name: "son",
  // 接收父组件传递过来的props
  props: ["count", "str", "bool", "person"]
}
</script>

<template>
  <section>
    <h1>{{ count }}</h1>
    <h1>{{ str }}</h1>
    <h1>{{ bool }}</h1>
    <h1>{{ person }}</h1>
  </section>
</template>

<style scoped lang="less">
section{
  background-color: chocolate;
}
</style>